import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
//        int[] a = {9,2,3,5,7,1,4};
        Cat[] b = {new Cat(3, 3), new Cat(5, 5), new Cat(1, 1)};
        Dog[] a = {new Dog(3), new Dog(5), new Dog(1)};
        Sorter<Dog> sorter = new Sorter();
        sorter.sort(a, new DogComparator());

        Sorter<Cat> catSorter = new Sorter();
        catSorter.sort(b, new CatComparator());

        System.out.println(Arrays.toString(a));
        System.out.println(Arrays.toString(b));
    }
}
